package com.tanhua.test;

import com.tanhua.AppServerApplication;
import com.tanhua.config.template.SendMessageTemeplate;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = AppServerApplication.class)
public class SendMessage {
    //注入
    @Autowired
    private SendMessageTemeplate sendMessageTemeplate;
    //测试
    @Test
    public void send(){
       sendMessageTemeplate.sms("123456","18166150631");
    }
    @Test
    public void aa(){
        System.out.println(1);
    }
}
